package dm

func (com *DmSoft) AsmAdd(asm string) int {
	ret, _ := com.dm.CallMethod("AsmAdd", asm)
	return int(ret.Val)
}

func (com *DmSoft) AsmCall(hwnd, mode int) int {
	ret, _ := com.dm.CallMethod("AsmCall", hwnd, mode)
	return int(ret.Val)
}

func (com *DmSoft) AsmClear() int {
	ret, _ := com.dm.CallMethod("AsmClear")
	return int(ret.Val)
}

/**业务方法*/
func (com *DmSoft) AsmCallOrder(hwnd int, mode int, asmArray []string) int {
	com.AsmClear()
	for _, asm := range asmArray {
		com.AsmAdd(asm)
	}
	return com.AsmCall(hwnd, mode)
}
